package com.ruoyi.posts.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 帖子信息对象 posts
 * 
 * @author ruoyi
 * @date 2025-01-19
 */
public class Posts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 标签 */
    @Excel(name = "标签")
    private String tags;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 发布人ID */
    @Excel(name = "发布人ID")
    private Long userId;

    /** 发布时间 */
    @Excel(name = "发布时间")
    private String time;

    /** 阅读量 */
    @Excel(name = "阅读量")
    private Long readCount;

    /** 版块ID */
    @Excel(name = "版块ID")
    private Long sectionId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTime(String time) 
    {
        this.time = time;
    }

    public String getTime() 
    {
        return time;
    }
    public void setReadCount(Long readCount) 
    {
        this.readCount = readCount;
    }

    public Long getReadCount() 
    {
        return readCount;
    }
    public void setSectionId(Long sectionId) 
    {
        this.sectionId = sectionId;
    }

    public Long getSectionId() 
    {
        return sectionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("img", getImg())
            .append("tags", getTags())
            .append("content", getContent())
            .append("userId", getUserId())
            .append("time", getTime())
            .append("readCount", getReadCount())
            .append("sectionId", getSectionId())
            .toString();
    }
}
